import Vue from 'vue'
import uView from './uni_modules/uview-ui'
import App from './App'
import store from './store/index';
import Cache from './utils/cache'
import util from 'utils/index.js'

// 挂载全局函数
Vue.prototype.$util = util;
Vue.prototype.$Cache = Cache;

Vue.config.productionTip = false

// 载入uView库
Vue.use(uView)
uni.$u.setConfig({
	config: {
		unit: 'rpx'
	}
})

App.mpType = 'app'

// 实例化应用
const app = new Vue({
	...App,
	store,
})
app.$mount()
